/////////////////////////////////////////////
//
//  Copyright (c) LEDONET by Dom.
//
/////////////////////////////////////////////
//#include <..\..\..\GHI\Include\GHI_OSHW_HAL.h
#include <string.h>
#include <tinyhal.h>



void LCD_WriteData(UINT16 value);
UINT16 LCD_ReadData();
void LCD_WriteCommand(UINT16 reg);
void LCD_Clear(UINT16 color);
void LCD_Init();
void LCD_PinConfig(void);
void LCD_SetPixelAddress(UINT16 x, UINT16 y, UINT16 color);
void LCD_SetDrawingWindow(UINT16 x, UINT16 y, UINT16 width, UINT16 height);
void LCD_Delay(UINT32 nCount);
void LCD_DelayUs(UINT32 nCount);
void LCD_Line(UINT16 x0, UINT16 y0, UINT16 x1, UINT16 y1,UINT16 color);
void LCD_Rectangle(UINT16 left, UINT16 top, UINT16 right, UINT16 bottom, UINT16 color, bool fill);
int power (int base, int n);
void LCD_PutChar(UINT16 x, UINT16 y, UINT8 Character, UINT16 ForeColor, UINT16 BackColor);
void LCD_Text(UINT16 x, UINT16 y, LPCSTR str, UINT16 len, UINT16 ForeColor, UINT16 BackColor);
void LCD_Circle(u16 cx, u16 cy, u16 r,u16 color, bool fill);
void LCD_SetScrollArea(UINT16 x, UINT16 y, UINT16 width, UINT16 height, UINT16 scrollx, UINT16 scrolly, bool up_down);
INT8 LCD_SetSpecialConfig(INT32 key, INT32 value);
